//
// Created by yyancy on 2019/11/15.
//

#include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

int main() {
    vector<double> temps;
    double t1, t2;
    while (cin >> t1 >> t2) {
        cout << t1 << "\t" << t2;
    }



    double sum = 0;
    for (double d:temps) sum += d;
    cout << "Average temperature: " << sum / temps.size() << "\n";

    cout << "Median temperature: " << temps[temps.size() / 2];
    string d;
    cin >> d;
    return 0;
}